View Javadoc
1 2 // This class is generated by XDoclet SDK (XGG). Do not edit! 3 package xdoclet.sdk.xtag.migrator; 4 5 /*** 6 * <p>XML element: <b><options/></b></p>. 7 * This element exists in the following versions: 8 * <ul> 9 * <li>xtags_1_1.dtd</li> 10 * </ul> 11 * 12 * @bean.class name="options" 13 * 14 * @author <a href="http://xdoclet.sf.net/">XDoclet</a> 15 */ 16 public final class Options extends xdoclet.sdk.xgg.XGGPojo { 17 /*** 18 * Default constructor. Should not be called explicitly. It's available 19 * only to be able to convert xml into beans with Betwixt. 20 */ 21 public Options() { 22 } 23 24 /*** 25 * Constructor. Should only be called if the current version is of the following: 26 * <ul> 27 * <li>xtags_1_1.dtd</li> 28 * </ul> 29 * @param parent the parent element 30 * @throws java.lang.IllegalStateException if this constructor is illegal 31 * with the current version. 32 */ 33 public Options( OptionSet parent ) throws java.lang.IllegalStateException { 34 // Check that it's ok to call this constructor. 35 checkVersion( new String[] { "xtags_1_1.dtd" } ); 36 parent.setOptions( this ); 37 } 38 39 /*** 40 * <p>XML element: <a href="Option.html"><option/></a></p> 41 * This element exists in the following versions: 42 * <ul> 43 * <li>xtags_1_1.dtd</li> 44 * </ul> 45 * 46 * The cardinality is (1..*) 47 * 48 * @param option the Option to add. 49 * @throws java.lang.IllegalStateException if this method is illegal 50 * with the current version. 51 */ 52 public final void addOption( final Option option ) throws java.lang.IllegalStateException { 53 // Check that it's ok to call this method. 54 checkVersion( new String[] { "xtags_1_1.dtd" } ); 55 _optionCollection.add( option ); 56 } 57 58 /*** 59 * @bean.property 60 * @bean.attribute name="betwixt.index" value="0" 61 * @bean.attribute name="betwixt.name" value="option" 62 */ 63 public final java.util.Collection getOptionCollection() { 64 return _optionCollection; 65 } 66 67 private final java.util.Collection _optionCollection = new java.util.ArrayList(); 68 69 }

This page was automatically generated by Maven